package com.bricker.laboratorymanagement.business.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bricker.laboratorymanagement.business.entity.Approval;
import com.bricker.laboratorymanagement.business.model.AppSelectModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApprovalMapper extends BaseMapper<Approval> {

    public List<Approval> getApprovalByLeader(Page<Approval> page, @Param("appSelectModel") AppSelectModel appSelectModel);

    List<Approval> getApprovalByAdmin(Approval approval);

}